package com.gof.example.builder;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/4 09:43.
 * haiming.fei@tongdun.cn
 */
public class SimpleDisplayBuilder extends DisplayBuilder {


    public SimpleDisplayBuilder(Model m) {
        super(m);
    }

    public SimpleDisplayBuilder() {
        super();
    }

    @Override
    void showMenu() {
        super.model.setControlBar("SimpleDisplayBuilder show bar");
    }

    @Override
    void showPlayList() {
        super.model.setPlayList("SimpleDisplayBuilder show playList");
    }

    @Override
    void showMainWindow() {
        super.model.setWindow("SimpleDisplayBuilder show window");
    }

    @Override
    void showControlBar() {
        super.model.setControlBar("SimpleDisplayBuilder show controlBar");
    }

    @Override
    void showFavouriteList() {
        super.model.setFavouriteList("SimpleDisplayBuilder show favouriteList");
    }

    @Override
    public Model build() {
        this.showMenu();
        this.showControlBar();
        return model;
    }
}
